/*************
 **
 ** Project:      stopwatch
 ** File info:    $Id: main.qml 23 2012-05-04 10:44:29Z Kuzma.Shapran@gmail.com $
 ** Author:       Copyright (C) 2011 Kuzma Shapran <Kuzma.Shapran@gmail.com>
 ** License:      GPLv3
 **
 **  This file is part of Stopwatch.
 **
 **  Stopwatch is free software: you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License as published by
 **  the Free Software Foundation, either version 3 of the License, or
 **  (at your option) any later version.
 **
 **  Stopwatch is distributed in the hope that it will be useful,
 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 **  GNU General Public License for more details.
 **
 **  You should have received a copy of the GNU General Public License
 **  along with Stopwatch.  If not, see <http://www.gnu.org/licenses/>.
 **
 *************/


import QtQuick 1.1
import "." 1.1
//import com.nokia.symbian 1.1

KPageStackWindow {
    id: window
    objectName: "window"
    initialPage: mainPage
    showStatusBar: true
    showToolBar: true
    property string windowTitle: "Stopwatch"

    MainPage {
        id: mainPage
    }

    AboutPage {
        id: aboutPage
        visible: false
    }

    HelpPage {
        id: helpPage
        mainPage: mainPage
        visible: false
    }

    function showAbout()
    {
        pageStack.push(aboutPage)
    }

    function showHelp()
    {
        pageStack.push(helpPage)
    }
}
